﻿namespace DotRas
{
    using System;
    using System.ComponentModel;

    public sealed class DialCompletedEventArgs : AsyncCompletedEventArgs
    {
        private bool _connected;
        private bool _timedOut;

        internal DialCompletedEventArgs(Exception error, bool cancelled, bool timedOut, bool connected, object userState) : base(error, cancelled, userState)
        {
            this._timedOut = timedOut;
            this._connected = connected;
        }

        public bool Connected
        {
            get
            {
                return this._connected;
            }
        }

        public bool TimedOut
        {
            get
            {
                return this._timedOut;
            }
        }
    }
}

